<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8"/>
    <title>Saleenauto IT System</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
            crossorigin="anonymous"></script>
</head>
<form class="form-horizontal" method="post" action="/add" method="post">
<body>
<div style="height: 40px;width: auto;margin-left: 10%;margin-right: 10%">
<div style="height: 20px;background-color;width: auto;margin-right: 10%;margin-left: 10%">
    <table table border="1" class="table table-bordered" style="height: 400px;width: 500px">
        {% for row in deviceslist %}
            <tr>
            <td>ID</td>
                <td>
            <textarea class="form-control" rows="1" name="id" readonly="readonly">{{ row['id'] }}</textarea>
            </td>
            <tr>
                <td style="width: 20%">状态</td>
                <td>
                    <select name="status" class="form-control">
                        <option selected value={{ row['status'] }}>{{ row['status'] }}</option>
                        <option value="使用中">使用中</option>
                        <option value="闲置">闲置</option>
                        <option value="损坏">损坏</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>主机名</td>
                <td><textarea class="form-control" rows="1" name="hostname">{{ row['hostname'] }}</textarea>
            </tr>
            <tr>
                        <tr>
                <td>资产编号</td>
                <td><textarea class="form-control" rows="1" name="assettag">{{ row['assettag'] }}</textarea>
            </tr>
            <tr>
                <td>类型</td>
                <td>
                    <select class="form-control" name="type">
                        <option selected value={{ row['type'] }}>{{ row['type'] }}</option>
                        <option value="物理服务器">物理服务器</option>
                        <option value="存储类">存储类</option>
                        <option value="虚拟机">虚拟机</option>
                        <option value="网关类">网关类</option>
                        <option value="交换机">交换机</option>
                        <option value="其它网络设备">其它网络设备</option>
                        <option value="台式机">台式机</option>
                        <option value="瘦客户机">瘦客户机</option>
                        <option value="笔记本">笔记本</option>
                        <option value="其它设备">其它设备</option>
                    </select>
                </td>
            </tr>
<tr>
   <td>所属环境</td>
   <td>
<select class="form-control" name="zone">
<option selected value={{ row['zone'] }}>{{ row['zone'] }}</option>
  <option value="正式生产环境">正式生产环境</option>
    <option value="测试环境">测试环境</option>
  <option value="开发环境" >开发环境</option>
     <option value="其它">其它</option>
 </select>
   </td>
  </tr>
                  <tr>
  <td>设备型号</td>
   <td>
  <textarea class="form-control" rows="1" name="modes">{{ row['modes'] }}</textarea>
   </td>
 </tr>
       <tr>
   <td>操作系统</td>
   <td>
<select class="form-control" name="os">
  <option selected value={{ row['os'] }}>{{ row['os'] }}</option>
  <option value="Windows">Windows</option>
    <option value="Esxi">Esxi</option>
  <option value="Linux" >Linux</option>
     <option value="Other">Other</option>
 </select>
   </td>
  </tr>
            <tr>
                <td>设备位置</td>
                <td>
                    <select class="form-control" name="locational">
                        <option selected value={{ row['locational'] }}>{{ row['locational'] }}</option>
                        <option value="上海7/8号楼">上海7/8号楼</option>
                        <option value="上海17/18号楼">上海17/18号楼</option>
                        <option value="上海直营店1">上海直营店1</option>
                        <option value="北京直营店1">北京直营店1</option>
                        <option value="迈迈工厂">迈迈工厂</option>
                        <option value="如皋工厂">如皋工厂</option>
                    </select>
                </td>
            </tr>
                  <tr>
  <td>设备型号</td>
   <td>
  <textarea class="form-control" rows="1" name="modes">{{ row['modes'] }}</textarea>
   </td>
 </tr>
            <tr>
   <td>详细位置</td>
    <td>
        <textarea class="form-control" rows="2" name="detail">{{ row['detail'] }}</textarea>
    </td>
       </td>
  </tr>
            <tr>
                <td>IP信息</td>
                <td><textarea class="form-control" rows="1" name="lanip">{{ row['lanip'] }}</textarea></td>
            </tr>
              <tr>
   <td>公网地扯</td>
   <td>
<textarea class="form-control" rows="1" name="wanip">{{ row['wanip'] }}</textarea>
   </td>
  </tr>
            <tr>
                <td>应用</td>
                <td>
                    <textarea class="form-control" rows="1" name="apps">{{ row['app'] }}</textarea></td>
            </tr>
            <tr>
                <td>使用者</td>
                <td>
                    <textarea class="form-control" rows="1" name="enduser">{{ row['enduser'] }}</textarea></td>
            </tr>
            <tr>
                <td>服务信息</td>
                <td>
                    <textarea class="form-control" rows="1" name="supportinfo">{{ row['supportinfo'] }}</textarea>
                </td>
            </tr>
            <tr>
                <td>登录信息</td>
                <td>
                    <textarea class="form-control" rows="2" name="logininfo">{{ row['logininfo'] }}</textarea>
                </td>
            </tr>>
            <tr>
            <tr>
                <td>MAC地扯</td>
                <td>
                    <textarea class="form-control" rows="2" name="macadd">{{ row['macadd'] }}</textarea>
                </td>
            </tr>
            <td>备注</td>
            <td>
                <textarea class="form-control" rows="3" name="other">{{ row['other'] }}</textarea>
            </td>
            <tr>
        {% endfor %}
        </th>
        </tr>
            <tr>
     <td><button style="display:block;margin:0 auto" class="btn btn-default" type="submit">保 存</button>
    <td><button style="display:block;margin:0 auto" class="btn btn-default" type="submit" onclick=window.close();>关闭</button></td>
    </tr>
    </table>
</form>
</div>
</body>
</html>